import request from "@/utils/request";

// 查询缓存详细
export function getTopFour(comId) {
  return request({
    url: "/system/homepage/overview?comId=" + (comId || ""),
    method: "get",
  });
}

// 最近七天报警波动
export function getSevenLine(comId) {
  return request({
    url: "/system/homepage/queryLast7DayWarn?comId=" + (comId || ""),
    method: "get",
  });
}

// 30天
export function getThirtyLine(comId) {
  return request({
    url: "/system/homepage/queryLast30DayDevWarn?comId=" + (comId || ""),
    method: "get",
  });
}
// 医院设备占比
export function getHospitalRate(comId) {
  return request({
    url: "/system/homepage/queryHospitalDevs?comId=" + (comId || ""),
    method: "get",
  });
}
// 设备在线离线占比
export function getDeviceRate(comId) {
  return request({
    url: "/system/homepage/queryDevsOnOrOffCount?comId=" + (comId || ""),
    method: "get",
  });
}
